import { LOADDATA } from '../actionTypes'

const state = {
    item: [],
}
const mutations = {
    getName(state, name) {
        state.item = name
    }
}

const actions = {
    [LOADDATA]({ commit }, name) {
        commit('getName', name)
    }
}

const getters = {
    // getName() {

    // }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters
}